package com.hefu.virtuallife.ui.purchase.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;


import com.hefu.virtuallife.baseui.BaseFragment;

import java.util.List;

/**
 * creat_user: zhengzaihong
 * email:1096877329@qq.com
 * creat_date: 2018/8/14
 * creat_time: 17:07
 * describe: 积分消费情况适配器
 **/
public class PointUseViewPagerAdapter extends FragmentPagerAdapter {


    private List<BaseFragment> fragments;
    private Context context;

    public PointUseViewPagerAdapter(FragmentManager fm, List<BaseFragment> fragments) {
        super(fm);
        this.fragments = fragments;
    }


    @Override
    public int getCount() {
        return fragments.size();
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }


}
